<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>模式转换</title>
    <style>
        a {
            width: 100px;
            hegiht: 200px;
            background-color: aqua;
            /* 由于是行内元素所以无法设置宽高，应该模式转换，转成块级元素 */
            display: block;
        }
        
        div {
            width: 100px;
            hegiht: 200px;
            background-color: red;
            /* 转换行内元素 */
            display: inline;
        }
    </style>
</head>

<body>

    <a href="#">我是链接</a>

    <div>你好</div>
    <div>你好</div>
    <div>你好</div>

</body>

</html>